package com.smartplatform.mapper;

import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 咕唧
 * @Date 2022/6/5 12:19
 * @Version 1.0
 */
public interface SysUserRoleMapper {
    @Select("select * from sys_user_role where user_id=#{uId}")
    List<Long> findByUId(Long uId);

    @Select("select role_id from sys_user_role where user_id=#{uId}")
    List<Long> selectRoleIdByUserId(Long uId);

}
